<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>TCL_ExistVar</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : 18/11/2005</div>
    <p>
      <b>TCL_ExistVar</b> - Return %T if a tcl variable
  exists</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>OK=TCL_ExistVar(varname
    [,interp])</tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>varname</b>
        </tt>: character string. Contains the name of the tcl/tk
          variable.</li>
      <li>
        <tt>
          <b>interp</b>
        </tt>: optional character string parameter. Name of the slave tcl
          interpreter in which the operation has to be performed. If not
          provided, it defaults to the main tcl interpreter created by
          Scilab.</li>
      <li>
        <tt>
          <b>ok</b>
        </tt>: boolean. %T if varname exists.</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>This routine allows to test if a tcl variable exists.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>
TCL_SetVar("Scilab","OK")
TCL_GetVar("Scilab")
TCL_UnsetVar("Scilab")
TCL_ExistVar("Scilab")
                             
TCL_SetVar("aa",1)
TCL_CreateSlave('SlaveInterp');
TCL_SetVar("aa",2,'SlaveInterp')
TCL_ExistVar("aa")
TCL_GetVar("aa")
TCL_UnsetVar("aa")
TCL_GetVar("aa",'SlaveInterp')
TCL_UnsetVar("aa",'SlaveInterp')
TCL_ExistVar("aa",'SlaveInterp')
TCL_DeleteInterp('SlaveInterp')</pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="ScilabEval.htm">
        <tt>
          <b>ScilabEval</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="TK_EvalFile.htm">
        <tt>
          <b>TCL_EvalFile</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="TK_EvalStr.htm">
        <tt>
          <b>TCL_EvalStr</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="TCL_GetVar.htm">
        <tt>
          <b>TCL_GetVar</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="TCL_SetVar.htm">
        <tt>
          <b>TCL_SetVar</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="TCL_UnsetVar.htm">
        <tt>
          <b>TCL_UnsetVar</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="TCL_UpVar.htm">
        <tt>
          <b>TCL_UpVar</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="TCL_CreateSlave.htm">
        <tt>
          <b>TCL_CreateSlave</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
    <h3>
      <font color="blue">Author</font>
    </h3>
    <p>Allan CORNET</p>
  </body>
</html>
